package net.yxsoft.enumclass;

import rapid.core.EnumClsBase;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Administrator
 */
public class AuditStatusEnumCls extends EnumClsBase<ChooseEnumCls> {
  public AuditStatusEnumCls(String text, String value) {
    super(text, value);
  }

  public static AuditStatusEnumCls Pass = new AuditStatusEnumCls("通过", "1");

  public static AuditStatusEnumCls NoPass = new AuditStatusEnumCls("不通过", "-1");

  public static AuditStatusEnumCls ToAudit = new AuditStatusEnumCls("待审核", "0");

  public static AuditStatusEnumCls Black = new AuditStatusEnumCls("退回", "-9");

  public static AuditStatusEnumCls Draft = new AuditStatusEnumCls("草稿", "-2");
  public static AuditStatusEnumCls LastPass = new AuditStatusEnumCls("终极审核通过", "2");
  public static AuditStatusEnumCls Y = new AuditStatusEnumCls("审核通过", "Y");



  public static AuditStatusEnumCls S = new AuditStatusEnumCls("审核中", "S");

  public static AuditStatusEnumCls N = new AuditStatusEnumCls("默认", "N");

  public static List<AuditStatusEnumCls> COLLECTS_DEFAULTS = new ArrayList<AuditStatusEnumCls>() {
    {
      add(Pass);
      add(NoPass);
      add(ToAudit);
      add(Black);
      add(Draft);
      add(Y);
      add(N);
      add(S);
    }
  };

  public static List<String> COLLECTS_AUDITS = new ArrayList<String>() {
    {
      add(Pass.getValue());
      add(NoPass.getValue());
      add(ToAudit.getValue());
      add(Black.getValue());
      add(LastPass.getValue());
    }
  };
}
